import request from '@/utils/request'
// 水机


//获取水机列表
export function getWaterCouponList(params) {
    return request({
        url: '/property/water/coupon',
        method: 'get',
        params
    })
}

//获取社区详情
export function getWaterCouponDetail(params) {
    return request({
        url: '/property/water/coupon/detail',
        method: 'get',
        params
    })
}
export function getWaterCouponSelectList(params) {
    return request({
        url: '/property/water/coupon/getSelectLists',
        method: 'get',
        params
    })
}
//添加
export function createWaterCoupon(data) {
    return request({
        url: '/property/water/coupon/create',
        method: 'post',
        data
    })
}

//修改
export function updateWaterCoupon(data) {
    return request({
        url: '/property/water/coupon/update',
        method: 'put',
        data
    })
}


//修改
export function changeWaterCouponFiledStatus(data) {
    return request({
        url: '/property/water/coupon/changeFiledStatus',
        method: 'put',
        data
    })
}


//删除
export function delWaterCoupon(data) {
    return request({
        url: '/property/water/coupon/delete',
        method: 'delete',
        data
    })
}


